<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>Returns the name of the timezone</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="datetimezone.getlocation.html">DateTimeZone::getLocation</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="datetimezone.getoffset.html">DateTimeZone::getOffset</a></div>
 <div class="up"><a href="class.datetimezone.html">DateTimeZone</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="datetimezone.getname" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">DateTimeZone::getName</h1>
  <h1 class="refname">timezone_name_get</h1>
  <p class="verinfo">(PHP 5 &gt;= 5.2.0)</p><p class="refpurpose"><span class="refname">DateTimeZone::getName</span> -- <span class="refname">timezone_name_get</span> &mdash; <span class="dc-title">Returns the name of the timezone</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-datetimezone.getname-description">
  <h3 class="title">说明</h3>
  <p class="para">面向对象风格</p>
  <div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">string</span> <span class="methodname"><strong>DateTimeZone::getName</strong></span>
    ( <span class="methodparam">void</span>
   )</div>

  <p class="para rdfs-comment">过程化风格</p>
  <div class="methodsynopsis dc-description">
   <span class="type">string</span> <span class="methodname"><a href="function.timezone-name-get.html" class="methodname">timezone_name_get</a></span>
    ( <span class="methodparam"><span class="type"><a href="class.datetimezone.html" class="type DateTimeZone">DateTimeZone</a></span> <code class="parameter">$object</code></span>
   )</div>

  <p class="para rdfs-comment">
   Returns the name of the timezone.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-datetimezone.getname-parameters">
  <h3 class="title">参数</h3>
  <dl>

   
    <dt>
<em><code class="parameter">object</code></em></dt>

    <dd>

     <p class="para">
      The <a href="class.datetimezone.html" class="classname">DateTimeZone</a> for which to get a name.
     </p>
    </dd>

   
  </dl>

 </div>


 <div class="refsect1 returnvalues" id="refsect1-datetimezone.getname-returnvalues">
  <h3 class="title">返回值</h3>
  <p class="para">
   One of the timezone names in the
   <a href="timezones.html" class="link">list of timezones</a>.
  </p>
 </div>


</div><hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="datetimezone.getlocation.html">DateTimeZone::getLocation</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="datetimezone.getoffset.html">DateTimeZone::getOffset</a></div>
 <div class="up"><a href="class.datetimezone.html">DateTimeZone</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>
